package com.boot.repository;

import com.boot.entity.Term;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;


@Repository
public interface TermRepository extends JpaRepository<Term, Integer>, JpaSpecificationExecutor<Term> {
    Term findByYearAndTerm(Integer year, Integer term);

    List<Term> findByTermidIn(Collection<Integer> termid);
}
